
using Qdb;
using Qdb.Config;

namespace Qdb.Config
{
	/// <exclude></exclude>
	public interface ILegacyClientServerFactory
	{
		/// <exception cref="Qdb.Ext.QdbIOException"></exception>
		/// <exception cref="Qdb.Ext.OldFormatException"></exception>
		/// <exception cref="Qdb.Ext.InvalidPasswordException"></exception>
		IObjectContainer OpenClient(IConfiguration config, string hostName, int port, string
			 user, string password);

		/// <exception cref="Qdb.Ext.QdbIOException"></exception>
		/// <exception cref="Qdb.Ext.IncompatibleFileFormatException"></exception>
		/// <exception cref="Qdb.Ext.OldFormatException"></exception>
		/// <exception cref="Qdb.Ext.DatabaseFileLockedException"></exception>
		/// <exception cref="Qdb.Ext.DatabaseReadOnlyException"></exception>
		IObjectServer OpenServer(IConfiguration config, string databaseFileName, int port
			);
	}
}
